#include "EtatRobotAVideFaceObstacle.h"
#include "EtatRobotEnChargeFaceObstacle.h"
#include "EtatRobotEnCharge.h"
#include "EtatRobotAVide.h"

static EtatRobotAVideFaceObstacle* instance;

EtatRobotAVideFaceObstacle* EtatRobotAVideFaceObstacle::getInstance(Robot* r){

	if(instance == NULL)
		instance = new EtatRobotAVideFaceObstacle(r);

	return instance;
}

void EtatRobotAVideFaceObstacle::saisir() {
    r->changerEtat((EtatRobot*) EtatRobotEnChargeFaceObstacle::getInstance(r));
}

int EtatRobotAVideFaceObstacle::evaluerObstacle() {
}

void EtatRobotAVideFaceObstacle::tourner() {
    r->changerEtat((EtatRobot*)EtatRobotAVide::getInstance(r));
}
